home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 25
/
Aminet 25 (1998)(GTI - Schatztruhe)[!][Jun 1998].iso
/
Aminet
/
mus
/
edit
/
OctaScripts.lha
/
scripts
/
AboveCMD_dec.omed
< prev
next >
Wrap
Text File
|
1998-04-15
|
690b
|
28 lines
/************************************************************
OctaMED ARexx Script
PT Clone (Left Alt + Key three steps left from backspace):
Copies command from the line above, decreases the level
and puts it on the current line.
************************************************************/
OP_GET EDIT VAR editstatus
IF (editstatus=1) THEN DO
ED_GETCURRLINE VAR currline
ED_GETNUMLINES VAR lastline
IF (currline = 0) THEN fromline = lastline-1
ELSE fromline = currline-1
ED_GETDATA LINE fromline CMDNUM VAR num
ED_GETDATA LINE fromline CMDLVL VAR lvl
ED_SETDATA CMDNUM num CMDLVL lvl-1
ED_ADVANCELINE DOWN SPACING
END
EXIT